﻿// -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	SmartLib
//  File name:	TraceProvider.cs
//  Developer:	Igor Solomatov
//  Created:	04.11.2012
// 
// -------------------- iSharePoint -------------------- //

using System;
using System.Diagnostics;

namespace Smart.Loggers
{
	public class TraceProvider : ILoggerProvider
	{
		/// <summary>
		/// The higher the value, the most important provider is
		/// </summary>
		public int Priority { get { return 1000; } }

		/// <summary>
		/// Minimal severity to log
		/// </summary>
		public MessageSeverity MinimalSeverity { get { return MessageSeverity.Trace; } }

		/// <summary>
		/// Log function
		/// </summary>
		public void Log(string category, MessageSeverity severity, string module, string message, Exception x, string fullMessage)
		{
			Trace.WriteLine(fullMessage);
		}
	}
}